<script>
export default {
  name: "HomeLoggedView" ,
}
</script>

<template>
  <div id="home">
    <div id="title">
      <div id="title_1" class="bg-primary">
        <div id="user_img">

        </div>
        <p id="user_name">黑马头条号</p>
        <router-link to="info" id="chang_info">编辑资料</router-link>
      </div>
      <div id="title_2" class="bg-primary">
        <div><p>8</p><p>头条</p></div>
        <div><p>66</p><p>关注</p></div>
        <div><p>88</p><p>粉丝</p></div>
        <div><p>88</p><p>获赞</p></div>
      </div>
      <div id="title_3">
        <div>
          <van-icon name="star-o" color="red" size="40"/>
          <p>收藏</p>
        </div>
        <div>
          <van-icon name="clock-o" color="orange" size="40"/>
          <p>历史</p>
        </div>
      </div>
      <div id="title_4">
        <div>
          <van-cell title="消息通知" is-link />
        </div>
        <div>
          <van-cell title="小智同学" is-link />
        </div>
      </div>
      <router-link to="unlogged" id="btn_esc">退出登录</router-link>
    </div>
  </div>
</template>

<style scoped>
*{
  margin: 0;
  padding: 0;
}
@import "~@/assets/bootstrap.min.css";
#home{
  width: 100%;
  height: 800px;
  background-color: #eae7e7;
  font-size: 12px;
}
#title_1{
  display: flex;
  align-items: center;
  width: 100%;
  height: 150px;
}
#title_2{
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  color: white;
  font-size: 15px;
  width: 100%;
  height: 75px;
}
#title_2 > div{
  display: flex;
  flex-direction: column;
  align-items: center;
}
#user_img{
  width: 75px;
  height: 75px;
  border-radius: 50%;
  margin-left: 30px;
  margin-right: 20px;
  background-color: white;
  overflow: hidden;
}
#user_name{
  margin-top: 8px;
  color: white;
  font-size: 15px;
}
#chang_info{
  padding-left: 6px;
  width: 60px;
  border-radius: 15px;
  border: none;
  color: #646363;
  margin-top: 8px;
  margin-left: 100px;
  background-color: white;
}
#title_3{
  height: 70px;
  padding-top: 10px;
  display: flex;
  justify-content: space-around;
  background-color: white;
}
#title_4{
  margin-top: 10px;
}
#title_4 > div{
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 35px;
  background-color: white;
  margin-top: 1px;
}
#btn_esc{
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  background-color: white;
  border: none;
  height: 50px;
  width: 100%;
  color: red;
}
#title_3 > div > p{
  margin-left: 8px;
}
</style>